﻿/*
Copyright (c) 2010 Lance Ward
This software is licensed under the MIT license, except where otherwise noted.
For complete license details, refer to license.txt
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ADNLib;

namespace ADNActions
{
	public static class Edit
	{

		//cut,copy,paste,delete

		public static void Cut(List<XObject> objs, List<XObject> selection)
		{
			if (objs != null && selection != null)
			{
				for (int i = 0; i < selection.Count; i++)
				{
					int index = objs.IndexOf(selection[i]);
					objs.RemoveAt(index);
				}

				selection.Clear();
			}
		}
	}
}
